package Sreaching;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("which one do you want search?");
        int num= scan.nextInt();
        Searching search = new Searching();
        Comparable[] data = new Comparable[100];
        for(int i=0;i<12;i++)
            data[i] = i;
        search.setData(data);
        boolean found = search.binarysearch(data,1,11,6,num);
        System.out.println("FoundOrNot: "+found);
        Comparable FoundNum = search.binarySearching(data,1,11,6,num);
        System.out.println("SearchedNumber: "+FoundNum);
    }
}
